Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.platform.preview.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.preview.actions inside nuxeo-platform-preview-7.10-HF07.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action enabled="false" icon="/icons/file.gif" id="TAB_PREVIEW" label="label.document.preview" link="/incl/tabs/preview_tab.xhtml" order="200" type="rest_document_link">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>view_preview</filter-id>
        </action>
  • <action enabled="false" icon="/icons/pdf.png" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
          <category>POPUP</category>
          <filter-id>popup_view_preview</filter-id>
        </action>
  • <action enabled="true" icon="/icons/preview.png" id="showFancyBoxPreviewPopup" label="label.document.preview" link="javascript:doPreviewPopup" order="130">
          <category>POPUP</category>
          <filter-id>popup_view_preview</filter-id>
        </action>
  • <action icon="/icons/contextual_menu/preview.png" id="showFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>view_preview</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>not_anonymous</filter-id>
          <properties>
            <property name="iframe">
              #{previewActions.getCurrentDocumentPreviewPopupURL()}
            </property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/preview.png" id="blobPreview" label="label.document.preview" link="#{previewActions.getViewerURL(document, blobXPath, blob)}" order="150" type="bare_link">
          <category>BLOB_ACTIONS</category>
          <filter-id>hasPDFPreview</filter-id>
          <properties>
            <property name="target">_blank</property>
          </properties>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <!-- disable the old tab as we now use the showPreviewPopup action -->
    <action enabled="false" icon="/icons/file.gif" id="TAB_PREVIEW" label="label.document.preview" link="/incl/tabs/preview_tab.xhtml" order="200" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view_preview</filter-id>
    </action>

    <action enabled="false" icon="/icons/pdf.png" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action enabled="true" icon="/icons/preview.png" id="showFancyBoxPreviewPopup" label="label.document.preview" link="javascript:doPreviewPopup" order="130">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action icon="/icons/contextual_menu/preview.png" id="showFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>view_preview</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>not_anonymous</filter-id>
      <properties>
        <property name="iframe">
          #{previewActions.getCurrentDocumentPreviewPopupURL()}
        </property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/preview.png" id="blobPreview" label="label.document.preview" link="#{previewActions.getViewerURL(document, blobXPath, blob)}" order="150" type="bare_link">
      <category>BLOB_ACTIONS</category>
      <filter-id>hasPDFPreview</filter-id>
      <properties>
        <property name="target">_blank</property>
      </properties>
    </action>

  </extension>